home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000682_kb@cs.umb.edu_Fri Jun 24 03:05:17 1994.msg < prev    next >
Internet Message Format  |  1994-10-11  |  7KB

  1. Received: from terminus.cs.umb.edu by cs.umb.edu with SMTP id AA20007
  2.   (5.65c/IDA-1.4.4 for <tex-k-exp@cs.umb.edu>); Fri, 24 Jun 1994 07:05:18 -0400
  3. Received: by terminus.cs.umb.edu id AA11228
  4.   (5.65c/IDA-1.4.4 for tex-k); Fri, 24 Jun 1994 07:05:17 -0400
  5. Date: Fri, 24 Jun 1994 07:05:17 -0400
  6. From: "K. Berry" <kb@cs.umb.edu>
  7. Message-Id: <199406241105.AA11228@terminus.cs.umb.edu>
  8. To: tex-k@cs.umb.edu
  9. Subject: sh config files
  10.  
  11. I've been experimenting with config files that are sh scripts, and so
  12. far I haven't really seen the win. Is there a particular feature or
  13. application to making the config file be a script? Because the necessary
  14. echo's just seem to clutter things up.
  15.  
  16. Here is my sample texmf.cnf in the homegrown syntax, followed by the sh
  17. version.
  18.  
  19. % original texmf.cnf -- runtime path configuration file for kpathsea.
  20. % (If you change or delete `original' on the previous line, the
  21. % distribution won't install its version over yours.)
  22. % Any variable name can be assigned.
  23. % The `=' (and surrounding spaces) is optional.
  24. % No space, %, or @ in variable values, for the sake of autogeneration.
  25. % Setting an environment variable foo will override a definition of foo here.
  26. % $foo (or ${foo}) in a value expands to the envvar or cnf value of foo.
  27. % All definitions are read before anything is expanded, so you can use
  28. % variables before they are used.
  29. % If a variable is qualified with `.<program>', it is ignored unless the
  30. % current executable is named <program>.
  31. % Which file formats use these paths for actual searches is described in
  32. % the various programs' and the kpathsea documentation.
  33. % // means to search subdirectories (recursively).
  34. % A leading !! means to look only in the ls-R db, never on the disk.
  35. % See the Kpathsea manual for full details.
  36. % kpathsea/INSTALL describes how the various path-related files are
  37. % created, and how to change the defaults.
  38.  
  39.  
  40. % Where the wild files are.
  41. TEXMFROOT = /usr/local/lib/texmf
  42.  
  43. % TeX input files -- i.e., anything to be found by \input or \openin,
  44. % including .sty, .eps, etc.  Things are confused by the many variants
  45. % of LaTeX, which all have the same filenames.  The current
  46. % recommendation is to make `latex' be latex2e, and if you also want to
  47. % support latex 2.09, call it latex209. If you do the reverse, the
  48. % definitions below will need adjusting.
  49. texinputdir = $TEXMFROOT/tex
  50. generic_texinputs = $texinputdir//
  51. TEXINPUTS = .:$generic_texinputs
  52. TEXINPUTS.latex209 = .:$texinputdir/latex209//:$generic_texinputs
  53.  
  54. % Ditto for MF.
  55. MFINPUTS = .:$TEXMFROOT/mf//:$TEXMFROOT/fonts//src//
  56.  
  57. % Predigested formats and string pools for initex/inimf.
  58. TEXFORMATS = .:$TEXMFROOT/ini
  59. MFBASES = .:$TEXMFROOT/ini
  60. TEXPOOL = $TEXMFROOT/ini
  61. MFPOOL = $TEXMFROOT/ini
  62.  
  63. % This definition isn't used from this .cnf file itself (that would be
  64. % paradoxical), but the compile-time defaults are built from it.
  65. TEXMF_CNF = .:/usr/local/lib/texmf
  66.  
  67. % The various font formats.
  68. PKFONTS = .:$TEXMFROOT/fonts//pk/$MAKETEX_MODE
  69. GFFONTS = .:$TEXMFROOT/fonts//gf/$MAKETEX_MODE
  70. VFFONTS = .:$TEXMFROOT/fonts//vf
  71. TFMFONTS = .:$TEXMFROOT/fonts//tfm
  72.  
  73. % Used to find texfonts.map; also as a backup for PKFONTS and GFFONTS,
  74. % but that normally is irrelevant, so don't bother with all subdirectories.
  75. GLYPHFONTS = .:$TEXMFROOT/fonts
  76.  
  77. % BibTeX bibliographies and style files.
  78. BIBINPUTS = .:$TEXMFROOT/bibtex/bib
  79. BSTINPUTS = .:$TEXMFROOT/bibtex/bst
  80.  
  81. % Dvips' config.* files.
  82. TEXCONFIG = .:~:$TEXMFROOT/dvips
  83.  
  84. % Dvips' PostScript prologues and .pf[ab] files.
  85. DVIPSHEADERS = .:$TEXMFROOT/dvips:$TEXMFROOT/fonts//type1
  86.  
  87.  
  88. #!/bin/sh
  89. # original texmf.cnf -- runtime path configuration file for kpathsea.
  90. # (If you change or delete `original' on the previous line, the
  91. # distribution won't install its version over yours.)
  92. # Any variable name can be assigned.
  93. # The `=' (and surrounding spaces) is optional.
  94. # No space, #, or @ in variable values, for the sake of autogeneration.
  95. # Setting an environment variable foo will override a definition of foo here.
  96. # $foo (or ${foo}) in a value expands to the envvar or cnf value of foo.
  97. # All definitions are read before anything is expanded, so you can use
  98. # variables before they are used.
  99. # If a variable is qualified with `.<program>', it is ignored unless the
  100. # current executable is named <program>.
  101. # Which file formats use these paths for actual searches is described in
  102. # the various programs' and the kpathsea documentation.
  103. # // means to search subdirectories (recursively).
  104. # A leading !! means to look only in the ls-R db, never on the disk.
  105. # See the Kpathsea manual for full details.
  106. # kpathsea/INSTALL describes how the various path-related files are
  107. # created, and how to change the defaults.
  108.  
  109.  
  110. # Where the wild files are.
  111. TEXMFROOT=/usr/local/lib/texmf
  112.  
  113. # TeX input files -- i.e., anything to be found by \input or \openin,
  114. # including .sty, .eps, etc.  Things are confused by the many variants
  115. # of LaTeX, which all have the same filenames.  The current
  116. # recommendation is to make `latex' be latex2e, and if you also want to
  117. # support latex 2.09, call it latex209. If you do the reverse, the
  118. # definitions below will need adjusting.
  119. texinputdir='$TEXMFROOT/tex'
  120. generic_texinputs=$texinputdir//
  121. test $program = latex209 && TEXINPUTS=$TEXINPUTS:$texinputdir/latex209//
  122. TEXINPUTS=$TEXINPUTS:$generic_texinputs
  123. echo "TEXINPUTS=$TEXINPUTS"
  124.  
  125. # Ditto for MF.
  126. echo 'MFINPUTS=.:$TEXMFROOT/mf//:$TEXMFROOT/fonts//src//'
  127.  
  128. # Predigested formats and string pools for initex/inimf.
  129. echo 'TEXFORMATS=.:$TEXMFROOT/ini'
  130. echo 'MFBASES=.:$TEXMFROOT/ini'
  131. echo 'TEXPOOL=$TEXMFROOT/ini'
  132. echo 'MFPOOL=$TEXMFROOT/ini'
  133.  
  134. # This definition isn't used from this .cnf file itself (that would be
  135. # paradoxical), but the compile-time defaults are built from it.
  136. echo 'TEXMF_CNF=.:/usr/local/lib/texmf'
  137.  
  138. # The various font formats.
  139. echo 'PKFONTS=.:$TEXMFROOT/fonts//pk/$MAKETEX_MODE'
  140. echo 'GFFONTS=.:$TEXMFROOT/fonts//gf/$MAKETEX_MODE'
  141. echo 'VFFONTS=.:$TEXMFROOT/fonts//vf'
  142. echo 'TFMFONTS=.:$TEXMFROOT/fonts//tfm'
  143.  
  144. # Used to find texfonts.map; also as a backup for PKFONTS and GFFONTS,
  145. # but that normally is irrelevant, so don't bother with all subdirectories.
  146. echo 'GLYPHFONTS=.:$TEXMFROOT/fonts'
  147.  
  148. # BibTeX bibliographies and style files.
  149. echo 'BIBINPUTS=.:$TEXMFROOT/bibtex/bib'
  150. echo 'BSTINPUTS=.:$TEXMFROOT/bibtex/bst'
  151.  
  152. # Dvips' config.* files.
  153. echo 'TEXCONFIG=.:~:$TEXMFROOT/dvips'
  154.  
  155. # Dvips' PostScript prologues and .pf[ab] files.
  156. echo 'DVIPSHEADERS=.:$TEXMFROOT/dvips:$TEXMFROOT/fonts//type1'